package com.codegeek.project.slope.domain;

import com.codegeek.common.utils.ReplaceIllegalChar;
import com.codegeek.framework.aspectj.lang.annotation.Excel;
import com.codegeek.framework.web.domain.BaseEntity;
import lombok.Data;

/**
 * 行政单位对象 slope_unit
 *
 * @author codegeek
 * @date 2020-02-17
 */
@Data
public class SlopeUnit extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long unitId;

    /**
     * province_name
     */
    @Excel(name = "province_name")
    private String provinceName;

    /**
     * 市级名称
     */
    @Excel(name = "市级名称")
    private String cityName;

    /**
     * 区域名称
     */
    @Excel(name = "区域名称")
    private String areaName;

    public void setProvinceName(String provinceName) {
        this.provinceName = new ReplaceIllegalChar().replace(provinceName);
    }

    public void setCityName(String cityName) {
        this.cityName = new ReplaceIllegalChar().replace(cityName);
    }

    public void setAreaName(String areaName) {
        this.areaName = new ReplaceIllegalChar().replace(areaName);
    }
}
